#include <iostream>
#include <list>
using std::cout;
using std::endl;
using std::list;
using namespace std;

void test(){
    list<int> lst; 
    list<int>::iterator iter1 = lst.begin(), iter2 = lst.end(); 
    //while(iter1 < iter2)
    for(; iter1 != iter2; ++iter1)
    {    
        //....
    }
}

int main()
{
    test();
    return 0;
}

